/**
 * Created by 20145214 on 2016/4/24.
 */
class Role {

    private String name;
    private int level;
    private int blood;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public int getBlood() {
        return blood;
    }

    public void setBlood(int blood) {
        this.blood = blood;
    }

}

    public class RoleTest{
        public static void main(String[] args){
            Role role = new Role();
            role.setName("Swordsman");
            role.setLevel(1);
            role.setBlood(200);

            System.out.println(getX(role));
        }

        private static String getX(Role role) {
            return "角色信息：名称：" + role.getName() + "等级：" + role.getLevel() + "血量：" + role.getBlood();
        }
    }

